var attributes = {
	code : "org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
	width : "100%",
	height : "100%"
};

var libraries = [];
libraries.push("product/pivot-core-2.0.jar");
libraries.push("product/pivot-wtk-2.0.jar");
libraries.push("product/pivot-wtk-terra-2.0.jar");
libraries.push("product/Pivot-Demo.jar");

attributes.archive = libraries.join(",");

var parameters = {
	codebase_lookup : false,
	application_class_name : 'demo.pivot.LoginView'	// modify here
};

var javaArguments = [ "-Dsun.awt.noerasebackground=true", "-Dsun.awt.erasebackgroundonresize=true" ];

parameters.java_arguments = javaArguments.join(" ");

deployJava.runApplet(attributes, parameters, "1.6");